﻿///<reference path="_moduleReferences.ts" />

module ScrambledEggs.Modules {
    export class YoungAdult implements IModule {
        private _youngBasics = $("#youngbasics");

        constructor() {
        }

        initialize(gameState: GameStateProvider, onUpdate: () => void ) {
        }

        update(gameState: GameStateProvider, triggerSource: IModule): void {
            var me = this;
            var showYoungBasics = gameState.State.Phase == GamePhase.YoungAdult
                && gameState.State.JobCooldown <= 0;
            me._youngBasics.toggle(showYoungBasics);
        }
    }
}